#include "object.h"
#include <QGLViewer/qglviewer.h>

class Viewer : public QGLViewer
{
    Q_OBJECT;
private:
    QVector<Object*> _objects;

public:
    Viewer(QWidget *parent = 0);
    ~Viewer();
    void addObject(Object*);
    void UpdateObjects(float *);

protected:
    virtual void animate();
    virtual void draw();
    virtual void init();
    virtual void startAnimation();
};
